﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Cloudthentic.SSIS.Server.Configuration
{
    public sealed class SsisServerConfiguration : ConfigurationSection
    {
        public SsisServerConfiguration() { }

        [ConfigurationProperty("ServerHostName", DefaultValue = "", IsRequired = true, IsKey = false)]
        public string ServerHostName
        {
            get
            {
                return (string)this["ServerHostName"];
            }
            set
            {
                this["ServerHostName"] = value;
            }
        }


        [ConfigurationProperty("PackageDeploymentFolder", DefaultValue = "", IsRequired = true, IsKey = true)]
        public string PackageDeploymentFolder
        {
            get
            {
                return (string)this["PackageDeploymentFolder"];
            }
            set
            {
                this["PackageDeploymentFolder"] = value;
            }
        }


        [ConfigurationProperty("SsisPackages", IsRequired = true, IsKey = false)]
        [ConfigurationCollection(typeof(SsisPackageConfigurationElementCollection))]
        public SsisPackageConfigurationElementCollection SsisPackages
        {
            get
            {
                return (SsisPackageConfigurationElementCollection)this["SsisPackages"];
            }
            set
            {
                this["SsisPackages"] = value;
            }
        }



    }
}
